﻿package frEngine.shader.md5shader
{
    import flash.events.*;
    import frEngine.*;
    import frEngine.event.*;
    import frEngine.shader.*;
    import frEngine.shader.filters.fragmentFilters.*;
    import frEngine.shader.filters.vertexFilters.*;
    import frEngine.shader.registType.*;

    public class Md5ShaderBase extends ShaderBase
    {
        public var boneRg:VcParam;

        public function Md5ShaderBase(param1:int, param2:VertexFilter, param3:FragmentFilter)
        {
            super(String(param1), param2, param3);
            this.materialParams.skinNum = param1;
            FrEventDispatcher.instance.proxyAddEventListener(this, Engine3dEventName.MATERIAL_REBUILDER, this.materialRebuilder);
            return;
        }// end function

        protected function materialRebuilder(event:Event) : void
        {
            this.boneRg = this.getParam("{bones}", true);
            return;
        }// end function

    }
}
